From: Paul Eggert Date: Wed, 30 Mar 2011 00:19:27 +0000 (-0700) Subject: * unexelf.c (unexec) [! (defined _SYSTYPE_SYSV || defined __sgi)]: X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~4269^2 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=e8b9fb004fcf9f6bf5921bdb59b0843f7144e44d;p=emacs.git * unexelf.c (unexec) [! (defined _SYSTYPE_SYSV || defined __sgi)]: Remove unused local var. --- diff --git a/src/ChangeLog b/src/ChangeLog index d846b3089f4..988254c7124 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2011-03-30 Paul Eggert + * unexelf.c (unexec) [! (defined _SYSTYPE_SYSV || defined __sgi)]: + Remove unused local var. + * editfns.c (Fmessage_box): Remove unused local var. 2011-03-29 Paul Eggert diff --git a/src/unexelf.c b/src/unexelf.c index b58c78501b8..8b45894f853 100644 --- a/src/unexelf.c +++ b/src/unexelf.c @@ -651,7 +651,9 @@ unexec (const char *new_name, const char *old_name) int n, nn; int old_bss_index, old_sbss_index, old_plt_index; int old_data_index, new_data2_index; +#if defined _SYSTYPE_SYSV || defined __sgi int old_mdebug_index; +#endif struct stat stat_buf; int old_file_size; @@ -695,8 +697,10 @@ unexec (const char *new_name, const char *old_name) /* Find the mdebug section, if any. */ +#if defined _SYSTYPE_SYSV || defined __sgi old_mdebug_index = find_section (".mdebug", old_section_names, old_name, old_file_h, old_section_h, 1); +#endif /* Find the old .bss section. Figure out parameters of the new data2 and bss sections. */